package com.hxzy.mapper;

import com.hxzy.dto.HouseFeatureSearchDTO;
import com.hxzy.entity.HouseFeature;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * FeatureMapper继承基类
 */
@Mapper
@Repository
public interface HouseFeatureMapper extends MyBatisBaseDao<HouseFeature, Integer> {

    List<HouseFeature> search(HouseFeatureSearchDTO houseFeatureSearchDTO);

    int existsName(@Param("id") Integer id,@Param("name") String name);

}